<script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=false&#038;ver=3.5.1'></script>
<script type='text/javascript' src='js/gmap3.min.js?ver=3.5.1'></script>
<?php $ubicacion = "{$DatosEmpresa['address']}, {$DatosEmpresa['localidad']}, {$DatosEmpresa['provincia']},{$DatosEmpresa['pais']}";?>

<div class="main-wrapper main-content clearfix">
	

	<!-- Start Load page content -->
	<section class="clearfix ">
		<div class="map content">
			<div style='height:400px' id='google-map1'></div>
		</div>

		<p class="blank-line clearfix"><br></p>

		<p class="blank-line clearfix"><br></p>

		<div class="content-half">
			<h3><span class="header-highlight">INFORMACION</span> DE CONTACTO</h3>
			<p class="blank-line clearfix"><br></p>

			<ul class="list-arrow">
				<li><div class="list-content"><?php echo $DatosEmpresa['cp'];?> <?php echo $DatosEmpresa['localidad'];?></div></li>
				<li><div class="list-content"><?php echo $DatosEmpresa['provincia'];?> - <?php echo $DatosEmpresa['pais'];?></div></li>
			</ul>

			<p class="blank-line clearfix"><br></p>

			<ul class="list-arrow">
				<li><div class="list-content">Celular: <?php echo $DatosEmpresa['telefono'];?></div></li>
				<li><div class="list-content">E-mail: <?php echo $DatosEmpresa['email'];?></div></li>
				<li><div class="list-content">Web: <?php echo URL;?></div></li>
				<li><div class="list-content">Skype: fdolci</div></li>
				
			</ul>

			<p class="blank-line clearfix"><br></p>
			<?php
				$cond   = "select * from publicaciones where id='31' and publicaciones.activo=1";
				$rs     = $db->SelectLimit($cond,1);
				$tip_31 = $rs->FetchRow();
			?>
			<h3><?php echo $tip_31['titulo1'];?></h3>
			<p class="blank-line clearfix"><br></p>
			<?php echo $tip_31['copete1'];?>
		</div>
		
		<div class="content-half last">
			<h4><span class="header-highlight">FORMULARIO</span> DE CONTACTO</h4>
			<p class="blank-line clearfix"><br></p>

			<form data-sucess="Gracias por comunicarse. En breve recibirá una respuesta." class="contact-form" >
			
				<input data-placeholder="" class="none" type="text" name="envoo-admin-mail" value="" style='display:none;'>
				<input type="hidden" name="theme-path" id='theme-path' value="<?php echo URL;?>">
				<div class="form-element-wrap">
					<input name="apellido" data-required="required" id="form-element-1" type="text" 
					data-validation="none" placeholder="Apellido*" data-placeholder="Apellido*">
				</div>
				<div class="form-element-wrap">
					<input name="nombre" data-required="required" id="form-element-2" type="text" 
					data-validation="none" placeholder="Nombre*" data-placeholder="Nombre*">
				</div>
				<div class="form-element-wrap">
					<input name="telefono" data-required="required" id="form-element-3" type="text" 
					data-validation="none" placeholder="Teléfono de Contacto*" data-placeholder="Teléfono de Contacto*">
				</div>
				
				<div class="form-element-wrap">
					<input name="email" data-required="required" id="form-element-4" type="text" 
					data-validation="email" placeholder="Email*" data-placeholder="Email*">
				</div>
				
				
				<div class="form-element-wrap">
					<textarea name="comentario" data-required="required" id="form-element-5" 
					data-validation="none" placeholder="Consulta/Comentario*" data-placeholder="Consulta/Comentario*"></textarea>
				</div>
				
				<div class="form-buttons buttons">
					<div id='sending' style='display:none;'><img src='<?php echo URL;?>/img/loading.gif' style='float:right;'> Enviando formulario....</div>
					<input type="submit" class="button large button-style1" value="Enviar">
					<input type="button" class="button large button-style1" value="Cancelar">
				</div>
				
			</form>

		</div>
		
		<div class="clearfix"></div>
	</section>   
        
</div>
    

	
<script>
jQuery(document).ready(function( $ ) { 
	$('#google-map1').gmap3(
		{ 
			action:'init',
			options:{
				zoom: 15
			}
		},
		
		{
			action: 'getLatLng',
			address: '<?php echo $ubicacion;?>',
			callback: function(result){
				$(this).gmap3(
				{
					action: 'setCenter', 
					args:[ result[0].geometry.location ]
				});
			} 
		}, 

		{
			action: 'addMarker',
			address: '<?php echo $ubicacion;?>'
		}

	);    

	
});

</script>

	